If you have not read part 3 of the R data analysis series kindly go through the following article where we discussed Group Manipulation In…